package com.wander.designBehavioral.command;

/**
 * @author WDYin
 * @date 2023/5/26
 **/
public class LightOnCommand  implements Command {
    private Light light;
    public LightOnCommand(Light light) {
        this.light = light;
    }
    @Override
    public void execute() {
        light.turnOn();
    }
}
